package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.Chatroom;
import cn.wolfcode.trip.base.domain.UserChatRoom;
import cn.wolfcode.trip.base.mapper.UserChatRoomMapper;
import cn.wolfcode.trip.base.service.IUserChatRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * UserChatRoomServiceImpl class
 *
 * @author lishuanwang
 * @date 2019/6/3
 */
@Service
public class UserChatRoomServiceImpl implements IUserChatRoomService {

    @Autowired
    private UserChatRoomMapper userChatRoomMapper;




    @Override
    public List<Long> listUserIdByChatRoomId(Long groupId) {
        return userChatRoomMapper.listUserIdByChatRoomId(groupId);
    }

    @Override
    public List<Chatroom> listChatRoomsByUserId(Long userId) {
        return userChatRoomMapper.listChatRoomsByUserId(userId);
    }


}
